<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <meta name="viewport"
   	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
   <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Payment Success</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-color: #ffffff;
        }
        .container {
            text-align: center;
            background-color: white;
            padding: 40px;
            border-radius: 10px;
           /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); */
        }
        .icon {
            font-size: 100px;
            color: #4CAF50;
        }
        .message {
            font-size: 24px;
            margin: 20px 0;
            color: #333;
        }
        .back-button {
            display: inline-block;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-size: 18px;
        }
        .back-button:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>

    <div class="container">
        <div class="icon">✔️</div>
        <div class="message">Payment Success</div>
		<button class="back-button" id="backButton">Confirm </button>
    </div>

</body>
</html>

<script type="text/javascript" src="http://skyteksmart.com/iotConsole/uni.webview.1.5.2.js"></script>
<script type="text/javascript">
	// 获取url参数
	function getUrlParams(url) {
		const paramsRegex = /[?&]+([^=&]+)=([^&]*)/gi;
		const params = {};
		let match;
		while (match = paramsRegex.exec(url)) {
			params[match[1]] = match[2];
		}
		return params;
	}
	
	window.addEventListener('UniAppJSBridgeReady', function() {
	
		window.getVueMessage = (data) => {
			
		}	
		document.getElementById('backButton').onclick = function(){
			uni.postMessage({
				data: {
					msg: "back",
				}
			})
		
		}
	});
</script>
